home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Fputchar(2) Oct. 1, 1991 Fputchar(2)
-
-
- N✓NA✓AM✓ME✓E
- Fputchar - read a character from a file
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- LONG Fputchar( WORD fh, LONG ch, WORD mode );
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓F_✓p_✓u_✓t_✓c_✓h_✓a_✓r outputs a character to the GEMDOS file whose han-
- dle is _✓f_✓h. The parameter _✓m_✓o_✓d_✓e has an effect only if the
- open file is a terminal or pseudo-terminal, in which case
- the bits of _✓m_✓o_✓d_✓e have the following meanings:
-
- 0x0001 Cooked mode; special control characters (control-C
- and control-Z) are checked for and interpreted if
- found (they cause SIGINT and SIGTSTP, respectively,
- to be raised); also, flow control with control-S
- and control-Q is activated.
-
- If the file receiving output is a pseudo-terminal, then
- all 4 bytes of _✓c_✓h are recorded in the write, and may be
- retreived by a _✓F_✓p_✓u_✓t_✓c_✓h_✓a_✓r call on the other side of the
- pseudo-terminal; this allows programs to pass simulated
- BIOS scan codes and shift key status through the pseudo-
- terminal.
-
- If the file receiving output is not a terminal, then only
- the low order byte of _✓c_✓h is written to the file.
-
- R✓RE✓ET✓TU✓UR✓RN✓NS✓S
- 4 (the number of bytes of data transferred) if the write
- was to a terminal
-
- 1 if the write was not to a terminal and was successful
-
- 0 if the bytes could not be output (for example, because
- of flow control)
-
- EIHNDL if _✓f_✓h is not a valid handle for an open file.
-
- A (long) negative BIOS error code if an error occured dur-
- ing physical I/O.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓B_✓c_✓o_✓n_✓o_✓u_✓t(2), _✓C_✓a_✓u_✓x_✓o_✓u_✓t(2), _✓C_✓c_✓o_✓n_✓o_✓u_✓t_✓(_✓2_✓)_✓, _✓C_✓r_✓a_✓w_✓i_✓o(2),
- _✓F_✓g_✓e_✓t_✓c_✓h_✓a_✓r(2), _✓F_✓w_✓r_✓i_✓t_✓e(2)
-
-
-
-
-
-
-
-
-
-
-
-
- Version 0.9 MiNT Programmer's Manual 1
-
-
-